import ModelUtils from '@/lib/utils/ModelUtils'

export default class BasePageMdl {
    get regMdlName() {
        return ModelUtils.getRegisterName(this)
    }
    get componentName() {
        if (!this.regMdlName) {
            throw new Error('Register Model is empty!')
        }
        return ModelUtils.getCompNameByEleType(this.regMdlName)
    }
}
